package com.flyme.module.base.client.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.flyme.module.base.client.entity.SysUser;
import lombok.Data;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 * @author: zyf
 * @date: 2018/11/12 11:35
 * @description:
 */
@Data
public class SysUserDto extends SysUser implements Serializable {
    private static final long serialVersionUID = 6717800085953996702L;
    /**
     * 用户角色
     */
    private Collection<Map> roles;

    private  String roleCode;
    /**
     * 用户权限
     */
    private Collection<String> authorities;

    /**
     * 密码凭证
     */
    @JsonIgnore
    @JSONField(serialize = false)
    private String password;

    /**
     * 是否通过
     */
    private Integer isPass;

}
